package com.thkj.modules.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.thkj.common.baseDao.BaseDao;
import com.thkj.modules.user.entity.LoginRecord;


public interface LoginRecordMapper extends BaseDao<LoginRecord> {

    @Select("select * from thkj_login_record where DATE_SUB(CURDATE(), INTERVAL #{num} DAY) <= date(visit_time)")
    List<LoginRecord> queryByRecen(@Param("num") int num);
}

